package com.reptile.model.title.controller;

import com.alibaba.fastjson.JSONObject;
import com.example.annotations.Auth;
import com.example.annotations.Autowired;
import com.example.annotations.GetMapping;
import com.example.annotations.RestController;
import com.example.utils.Results;
import com.reptile.service.JsoupService;

/**
 * @Classname ReptileController
 * @Description TODO
 * @Date 2022/8/11 10:19
 * @Created by XiongXiong
 * @Author: X.I.O
 */
@RestController("/reptile")
public class ReptileController {


    @Autowired
    JsoupService jsoupService;

    @Auth
    @GetMapping("/test")
    public JSONObject reptileController() throws Exception{
        jsoupService.getSinaHotSearch();
        return Results.success("成功");
    }
}
